package com.wt.struggle.goodbye.user.activity

import android.os.Bundle
import android.os.Message
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import com.wt.struggle.goodbye.R
import com.wt.struggle.goodbye.base.ProActivity
import com.wt.struggle.goodbye.info.NetInfo
import com.wt.struggle.goodbye.info.NewsInfo
import com.wt.struggle.goodbye.sq.adapter.HandPickAdapter
import com.wt.struggle.goodbye.sq.adapter.PickUserAdapter
import kotlinx.android.synthetic.main.friend_list_layout.*
import kotlinx.android.synthetic.main.head.*

class FriendListActivity : ProActivity() {
    override fun handler(what: Int, arg1: Int, netInfo: NetInfo) {
        when(what){

        }

    }


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.friend_list_layout)
        tvTitle.text = "圈子"
        imageBack.setOnClickListener { finish() }
        initAdapter()
    }

    val list= arrayListOf<NewsInfo>()

    private fun initAdapter() {
        friendRecyclerView.layoutManager = LinearLayoutManager(this)
        friendRecyclerView.addItemDecoration(DividerItemDecoration(this, DividerItemDecoration.VERTICAL))
        friendRecyclerView.adapter = HandPickAdapter(this, list)

    }
}